package com.realtyManage.springboot.Dao;


import com.realtyManage.springboot.Model.Do.Exchange;
import com.realtyManage.springboot.Model.Do.SignIn;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

/**
 * 每日签到
 *
 * @author 杭州素色网络科技有限公司
 * @since 2019-12-23
 */

@Repository
public interface SingInRepository extends JpaRepository<SignIn, Long>, JpaSpecificationExecutor<SignIn> {


    @Query(value = "select count(1) from sign_in where user_id = ?1 and type = ?2 and info_time = ?3",nativeQuery = true)
    int signInVerification(Integer id,Integer type,String time);

}
